import http from '@/http'

// 轮播
export const getHomeBanner = (data) => {
	return http({
		url: '/homeBanner',
		method: 'GET',
		data
	})
}

// 每日推荐
export const getRecommend = (data) => {
	return http({
		url: '/randomWall',
		method: 'GET',
		data
	})
}

// 分类
export const getClassify = (data) => {
	return http({
		url: '/classify',
		method: 'GET',
		data
	})
}

// 分类详情
export const getClassDetail = (data) => {
	return http({
		url: '/wallList',
		method: 'GET',
		data
	})
}
// 单个壁纸详情
export const getWallDetail = (data) => {
	return http({
		url: '/detailWall',
		method: 'GET',
		data
	})
}

// 个人信息
export const getUserInfo = (data) => {
	return http({
		url: '/userInfo',
		method: 'GET',
		data
	})
}

// 评分
export const setupScore = (data) => {
	return http({
		url: '/setupScore',
		method: 'GET',
		data
	})
}
